# Author: Kuilin

#user_data = "Kuilin","zihan"
user_password = "123456789"
# 置入vip信息
user_data_VIP = "Kuilin"
# user_data_UNVIP = "zihaKn"
# 会员有10次试错机会，非会员仅有5次

import datetime
time = datetime.datetime.today().weekday()

count = 10
count_ = 5
while True:
    #count -= 1

# 输入用户数据
    username = input("账号名称:")
    password = input("密码:")

# 判断用户
    if username == user_data_VIP:
     if username in user_data_VIP:
        if password == user_password:
            print("您好，登录成功",username,"会员，欢迎使用课表查询系统")
            week_time = int(time)
            print(week_time)
            if week_time == 1:
                print("星期一有三节课");
                print("3-5python语言");
                print("8-10创业实践");
                print("12-13毛概理论")
            elif week_time == 2:
                print("星期二有三节课");
                print("1-2户外体育游戏");
                print("8-9新闻评论");
                print("12-13大学英语")
            elif week_time == 3:
                print("星期三有一节课");
                print("3-5融合新闻学")
            elif week_time == 4:
                print("星期四有三节课");
                print("2-3科学技术发展史");
                print("4-5大学英语");
                print("8-9毛概实践")
            else:
                print("喜提周五、周六和周日");
                print("周末愉快")
            print("FINISH")
            break
        else:
            if count == 0:
                print("您已连续输入10次，您的账号已被锁定，5min后请重试。")
                break
            else:
                count -= 1
                print(user_data_VIP,"会员","您的账号或密码不正确,请重新输入，您还有",count,"次机会")
    else:
        if count == 0:
            print("您已连续输入10次，您的账号已被锁定，5min后请重试。")
            break
        else:
            if count_ == 0:
                print("您已连续输入5次，账号已被锁定，5min后请重试。")
                break
            else:
                count_ -= 1
                print(username,"非会员","您的账号或密码不正确,请重新输入，您还有", count_, "次机会")


